<script>
	export default {
		onLaunch(){
		  const that = this;
		    wx.getPrivacySetting({
		     success(res) {
		      console.log('是否需要授权：', res.needAuthorization, '隐私协议的名称为：', res.privacyContractName);
		      if (res.needAuthorization) {
			   const vue_privacy = {privacyContractName:res.privacyContractName,showPrivacy:true}
			   that.$u.vuex('vue_privacy', vue_privacy)
		      } else {
		       const vue_privacy = {privacyContractName:res.privacyContractName,showPrivacy:false}
		       that.$u.vuex('vue_privacy', vue_privacy)
		      }
		     }
		    });
			uni.removeStorageSync('url')
			uni.removeStorageSync('back_url')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
	page{
		
	}
</style>
